$(document).ready(function() {
    // set up the news accordion on the lower page
    $("#deaccordian").accordion({header: "h4" ,icons: false,autoHeight: false,navigation: true});
    $("li a:contains(Admin)").addClass('current');
    $("#boardCompare tbody tr:even").addClass("even");
    $("#boardCompare tbody tr:odd").addClass("odd");
    $("div.detail").hide();
    $("input:button.complete").click(complete);


 //   $("input:submit").button();

});
function complete(evt)
{
   id=this.name;
   data="appid="+id;
  // alert(data);
   $.ajax({
        type: 'POST',
        data:data,
        url: base_url() + 'de/shift_complete_ajax',
        datatype: "html",
        success : function (result) {
            $("td#"+id).html(result);

        }
    });

}




